package com.monkeyboy.mytest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.monkeyboy.mytest.common.dto.ResData;
import com.monkeyboy.mytest.service.UserService;

@Controller
public class UserController {
@Autowired
private UserService userService;
@RequestMapping("/selectAllUser")
@ResponseBody
public Object selectAllUser() {
	try {
		return userService.selectAllUser();
	} catch (Exception e) {
		return ResData.ERROR_500("网络繁忙，请稍后重试");
	}
}
}
